package com.vcredit.creditcat.service;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.vcredit.creditcat.model.AddressList;
import com.vcredit.creditcat.persistence.base.AddressListMapper;

/**
 * 
 **/
@Service
public class AddressListService {
	@Autowired
	private AddressListMapper mapper;

	public void insert(AddressList obj) {
		mapper.insert(obj);
	}

	public void update(AddressList obj) {
		mapper.update(obj);
	}

	public List<AddressList> findAll() {
		return mapper.findAll();
	}

	public List<AddressList> find(AddressList obj) {
		return mapper.find(obj);
	}

	public List<AddressList> findByCustId(Long custId) {
		AddressList queryParam = new AddressList();
		queryParam.setCustId(custId);
		return mapper.find(queryParam);
	}
}